<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<s:layout-render name="/layout_template.jsp" nadpis="businessTrip.editHeading">
   
    <s:layout-component name="telo">
        <s:useActionBean beanclass="cz.muni.fi.pa165.carparkweb.actionbeans.EmployeeActionBean" var="actionBean"/> 
        <s:form beanclass="cz.muni.fi.pa165.carparkweb.actionbeans.EmployeeActionBean">     
            <s:hidden name="businessTrip.id" />
            <s:hidden name="employee.name"/>
             <div id="form">
                 <s:errors/>
                 <div class="row"><s:label class="col1"  name="businessTrip.employeeForm" for="s2"/>
                 <span class="col2">
                     <c:out value="${actionBean.employee.name}"/>   
                 </span>
                </div>
             <div class="row">
                    <s:hidden name="employee.id"/>
                    <s:label class="col1" name="businessTrip.vehicleForm" for="s3" />
                    <span class="col2">
                        <s:select name="businessTrip.vehicle.id" style="width: 190px">
                            <s:options-collection collection="${actionBean.vehicles}" value="id"/>
                        </s:select>
                    </span>
            </div>                   
            <div class="submit">
                <s:submit class="button" name="createTrip"><f:message key="createNew" /></s:submit>                
                <s:submit class="button" name="listTripsForEmployee"><f:message key="cancel"/></s:submit>
            </div>
            </div>
        </s:form> 
    </s:layout-component>
</s:layout-render>